<?php

declare(strict_types=1);

namespace DreamCat\StateMachine\Popo;

/**
 * 单个任务
 * @author vijay
 */
class SingleTask
{
    /** @var string 任务编号 */
    private string $taskCode;
    /** @var string 任务名称 */
    private string $taskName;
    /** @var int 状态，未开始、进行中、结束 */
    private int $status;
    /** @var int 结束则为完成时间，否则为预期时间 */
    private int $finishTime;

    /**
     * @return string
     */
    public function getTaskCode(): string
    {
        return $this->taskCode;
    }

    /**
     * @param string $taskCode
     */
    public function setTaskCode(string $taskCode): void
    {
        $this->taskCode = $taskCode;
    }

    /**
     * @return string
     */
    public function getTaskName(): string
    {
        return $this->taskName;
    }

    /**
     * @param string $taskName
     */
    public function setTaskName(string $taskName): void
    {
        $this->taskName = $taskName;
    }

    /**
     * @return int
     */
    public function getStatus(): int
    {
        return $this->status;
    }

    /**
     * @param int $status
     */
    public function setStatus(int $status): void
    {
        $this->status = $status;
    }

    /**
     * @return int
     */
    public function getFinishTime(): int
    {
        return $this->finishTime;
    }

    /**
     * @param int $finishTime
     */
    public function setFinishTime(int $finishTime): void
    {
        $this->finishTime = $finishTime;
    }
}

# end of file
